package HuaweiOD;

import java.util.Scanner;

public class test2 {
    static char[] cha = new char[27];
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        char c = 'a';
        for (int i = 1; i < 27; i++) {
            cha[i] = c;
            c = (char) (c + 1);
//            System.out.println(cha[i]);
        }
        while (in.hasNext()){
            String s = in.nextLine();
            System.out.println(solve(s));
        }
    }
    
    public static String solve(String s) {
        StringBuilder ans = new StringBuilder();
        int len = s.length();
        int i = 0;
        while (i < len){
            if (i + 2 < len && s.charAt(i + 2) == '*') {
                change(s.substring(i, i + 2), ans);
                i += 3;
            }else {
                change(String.valueOf(s.charAt(i)), ans);
                i++;
            }
        }
        return ans.toString();
    }
    
    public static void change(String str, StringBuilder ans){
        int num = Integer.parseInt(str);
        if (num > 0 && num <= 26) ans.append(cha[num]);
    }
}
